package erfgame.core;

import java.awt.Point;

public class PointAndAngle extends Point {
	private double angle;
	
	public PointAndAngle( int x, int y, double angle ) {
		super( x, y );
		this.angle = angle;
	}
	
	public double getAngle() {
		return angle;
	}

	public boolean equals( Object o ) {
		boolean result;
		if( o instanceof PointAndAngle && super.equals( o ) ) {
			result = ((PointAndAngle)o).getAngle() == this.angle;
		} else {
			result = false;
		}
		return result;
	}
}
